x86/mm: New mem access type to log access
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Tue, 6 Dec 2011 21:16:56 +0000 (21:16 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Tue, 6 Dec 2011 21:16:56 +0000 (21:16 +0000)
commitacb4e3f39693c890267465ac9b9df30bad01e073
treebfcff82e0cc8c014f79f7bd91a628fc36403df0d
parentcddf900b88218075ae1b116cbe9937b621a9903a
x86/mm: New mem access type to log access

This patch adds a new p2m access type, n2rwx. It allows for implement a "log
access" mode in the hypervisor, akin to log dirty but for all types of
accesses. Faults caused by this access mode automatically promote the
access rights of the offending p2m entry, place the event in the ring, and
let the vcpu keep on executing.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Signed-off-by: Adin Scannell <adin@scannell.ca>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h
xen/include/public/hvm/hvm_op.h